﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Nantianmen.EntityFrameworkCore.Migrations.Postgresql
{
    /// <inheritdoc />
    public partial class init : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "DestinationModels",
                columns: table => new
                {
                    Address = table.Column<string>(type: "text", nullable: false),
                    Host = table.Column<string>(type: "text", nullable: true),
                    Health = table.Column<string>(type: "text", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_DestinationModels", x => x.Address);
                });

            migrationBuilder.CreateIndex(
                name: "IX_DestinationModels_Address",
                table: "DestinationModels",
                column: "Address");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "DestinationModels");
        }
    }
}
